// const baseApi = 'http://116.255.130.173:39010';
// const baseApi = 'http://localhost:39010';
const baseApi = 'http://121.40.237.31:35010';

const adminConfig = {
	baseApi,
	login: {
		url: '/pages/static/login/login' // 登录页面路径
	},
	index: {
		url: '/pages/static/index/index' // 登录后跳转的第一个页面
	},
	error: {
		url: '/pages/static/error/404' // 404 Not Found 错误页面路径
	},
	navBar: { // 顶部导航
		logo: '/static/logo.png', // 左侧 Logo
		langs: [{
			text: '中文简体',
			lang: 'zh-Hans'
		}, {
			text: '中文繁體',
			lang: 'zh-Hant'
		}, {
			text: 'English',
			lang: 'en'
		}],
		debug: {
			enable: process.env.NODE_ENV !== 'production', //是否显示错误信息
			engine: [{ // 搜索引擎配置（每条错误信息后，会自动生成搜索链接，点击后跳转至搜索引擎）
				name: '百度',
				url: 'https://www.baidu.com/baidu?wd=ERR_MSG'
			}, {
				name: '谷歌',
				url: 'https://www.google.com/search?q=ERR_MSG'
			}]
		}
	},
	sideBar: {
		staticMenu: [{
			menu_id: "index",
			text: '首页',
			value: '/',
		},{
			menu_id: "static",
			text: '静态功能',
			icon: 'admin-icons-kaifashili'
		}, {
			menu_id: "icons",
			text: '图标',
			value: '/pages/tool/uni-icons/uni-icons',
			parent_id: "static"
		}, {
			menu_id: "tool-form-designer",
			text: '功能配置',
			value: '/pages/tool/tool-config',
			parent_id: "static"
		}, {
			menu_id: "fm-info-perfect",
			text: '站点信息完善',
			value: '/pages/tool/fm-info-perfect/fm-info-perfect',
			parent_id: "static"
		}, {
			menu_id: "tool-test",
			text: '测试页面',
			value: '/pages/tool/tool-test',
			parent_id: "static"
		}, {
			menu_id: "video-hk",
			text: 'Video-海康',
			value: '/pages/tool/tool-video-hk/video-hk',
			parent_id: "static"
		}, {
			menu_id: "video-hk-plug",
			text: '视频-海康-插件播放',
			value: '/pages/tool/tool-video-hk/components/video-hk-plug',
			parent_id: "static"
		}, {
			menu_id: "file-preview",
			text: '文件在线预览',
			value: '/pages/tool/tool-file-preview/file-preview',
			parent_id: "static"
		}, {
			menu_id: "tool-http",
			text: '在线请求发起',
			value: '/pages/tool/tool-http/tool-http',
			parent_id: "static"
		}, {
			menu_id: "tool-3d",
			text: 'tool-3d',
			value: '/pages/tool/tool-3d/tool-3d',
			parent_id: "static"
		}, {
			menu_id: "tool-data",
			text: 'tool-data',
			value: '/pages/tool/tool-data/tool-data',
			parent_id: "static"
		}, {
			menu_id: "tool-map",
			text: '地图工具',
			value: '/pages/tool/tool-map/tool-map',
			parent_id: "static"
		}, {
			menu_id: "tool-map-marks",
			text: '地图 - marks',
			value: '/pages/tool/tool-map/tool-marks/map-mars',
			parent_id: "static"
		}, {
			menu_id: "tool-ai-video",
			text: 'AI视频分析',
			value: '/pages/tool/tool-ai/tool-ai-video',
			parent_id: "static"
		}, {
			menu_id: "common-api",
			text: '公共能力',
			value: `${baseApi}/doc.html`,
			parent_id: "static"
		}]
	}
}

export default adminConfig;
